#ifndef __VGA_TEXT_H_f57dbdf4eeb6488ba57a26c18f8494d3__
#define __VGA_TEXT_H_f57dbdf4eeb6488ba57a26c18f8494d3__

#include <stdint.h>

#define VGA_COLOR_TEXT_MODE_ADDRESS 0xB8000
#define COLS 80
#define LINES 25

static uint8_t _curX = 0;
static uint8_t _curY = 0;
static uint8_t _color = 0;
static uint16_t _curLocation = 0;

void vga_text_mode_putc(char c);
void vga_text_mode_puts(char *str);
void vga_text_mode_cls();
void vga_text_mode_goto(uint8_t x,uint8_t y);
void vga_text_mode_scroll_line();
void vga_text_mode_set_color(uint8_t color);

uint16_t vga_text_mode_get_cur_location();
uint8_t vga_text_mode_get_cursorX();
uint8_t vga_text_mode_get_cursorY();

int vga_text_mode_printk(const char *fmt,...);

#endif